net.sf.webphotos.gui.util.fest
Class WebPhotosDelegate

java.lang.Object
  extended by net.sf.webphotos.gui.util.fest.WebPhotosDelegate
All Implemented Interfaces:
WebPhotosDelegate

public class WebPhotosDelegate
extends Object
implements WebPhotosDelegate

Author:
Guilherme

Constructor Summary
WebPhotosDelegate()
           
 
Method Summary
 void addPhotosToAlbumAndCheck(String[] fileNames, String buttonName, File folderNameToVerify, String fileDialogName)
           
 void checkButtonHasText(String button, String textShown)
          Tests Button Text
 void checkComboBoxHasText(String comboBoxName, String textShown)
          Tests Combox Text
 void checkIsButtonEnabled(String button)
          Tests Button
 void checkNewAlbum()
          It validates album insertion
 void fillAlbumForm(String albumTitle, String albumDescription, String categoryName, Map<String,String[]> photoData)
          Fill up a new album using a pre-defined category, credits and added photos
 void fillModalWithText(String buttonName, String modalTittle, String data)
          Writes text to a Modal Dialog
static WebPhotosDelegate getWebPhotosDelegate()
          Returns the Delegate
 void setUp()
          Setup for One Test
 void setUpClass()
          Prepare all tests
 void tearDownClass()
          Dispose all tests
 void validateMainWindowIsPresent()
          Tests mainWindow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebPhotosDelegate

public WebPhotosDelegate()
Method Detail

setUpClass

public void setUpClass()
                throws Exception
Description copied from interface: WebPhotosDelegate
Prepare all tests

Specified by:
setUpClass in interface WebPhotosDelegate
Throws:
Exception - no errors allowed

addPhotosToAlbumAndCheck

public void addPhotosToAlbumAndCheck(String[] fileNames,
                                     String buttonName,
                                     File folderNameToVerify,
                                     String fileDialogName)
                              throws RuntimeException
Specified by:
addPhotosToAlbumAndCheck in interface WebPhotosDelegate
Throws:
RuntimeException - no errors allowed

checkButtonHasText

public void checkButtonHasText(String button,
                               String textShown)
                        throws RuntimeException
Description copied from interface: WebPhotosDelegate
Tests Button Text

Specified by:
checkButtonHasText in interface WebPhotosDelegate
Throws:
RuntimeException - no errors allowed

checkComboBoxHasText

public void checkComboBoxHasText(String comboBoxName,
                                 String textShown)
                          throws RuntimeException
Description copied from interface: WebPhotosDelegate
Tests Combox Text

Specified by:
checkComboBoxHasText in interface WebPhotosDelegate
Throws:
RuntimeException - no errors allowed

checkIsButtonEnabled

public void checkIsButtonEnabled(String button)
                          throws RuntimeException
Description copied from interface: WebPhotosDelegate
Tests Button

Specified by:
checkIsButtonEnabled in interface WebPhotosDelegate
Throws:
RuntimeException - no errors allowed

fillModalWithText

public void fillModalWithText(String buttonName,
                              String modalTittle,
                              String data)
                       throws RuntimeException
Description copied from interface: WebPhotosDelegate
Writes text to a Modal Dialog

Specified by:
fillModalWithText in interface WebPhotosDelegate
Throws:
RuntimeException - no errors allowed

tearDownClass

public void tearDownClass()
                   throws Exception
Description copied from interface: WebPhotosDelegate
Dispose all tests

Specified by:
tearDownClass in interface WebPhotosDelegate
Throws:
Exception - no errors allowed

validateMainWindowIsPresent

public void validateMainWindowIsPresent()
Description copied from interface: WebPhotosDelegate
Tests mainWindow

Specified by:
validateMainWindowIsPresent in interface WebPhotosDelegate

setUp

public void setUp()
Setup for One Test

Specified by:
setUp in interface WebPhotosDelegate

getWebPhotosDelegate

public static WebPhotosDelegate getWebPhotosDelegate()
Returns the Delegate

Returns:

fillAlbumForm

public void fillAlbumForm(String albumTitle,
                          String albumDescription,
                          String categoryName,
                          Map<String,String[]> photoData)
Description copied from interface: WebPhotosDelegate
Fill up a new album using a pre-defined category, credits and added photos

Specified by:
fillAlbumForm in interface WebPhotosDelegate

checkNewAlbum

public void checkNewAlbum()
Description copied from interface: WebPhotosDelegate
It validates album insertion

Specified by:
checkNewAlbum in interface WebPhotosDelegate


Copyright © 2008-2012. All Rights Reserved.